Don't prefer 'notes' on a shortname if we have an empty (but non-null) notes.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 14 Sep 2005 14:19:46 +0000 (14:19 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 14 Sep 2005 14:19:46 +0000 (14:19 +0000)
(Test case: input from a tabsep file...)

gpsbabel/mkshort.c

index 8c2c96005b1914d5d00549ed6ca47f8e092c9d70..2ab7e220c39e9fa2b7f16c404d3f8d6da194f280 100644 (file)
@@ -478,7 +478,8 @@ mkshort_from_wpt(void *h, const waypoint *wpt)
         * which contains placer name, diff, terr, and generally way
         * more stuff than should be in any one field...
         */
-       if (wpt->gc_data.diff && wpt->gc_data.terr && wpt->notes) {
+       if (wpt->gc_data.diff && wpt->gc_data.terr && 
+               wpt->notes && wpt->notes[0]) {
                return mkshort(h, wpt->notes);
        }